package com.meilai.project.entity.system;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.meilai.project.core.bean.StringToBoolSerializer;
import com.meilai.project.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author 张驰
 * @date 2020/9/10 16:54
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("`router`")
public class Router extends BaseEntity {
    private Long pid;
    private Long p_menu_id;
    private Long rid;
    private Integer type;
    private String path;
    private String component;
    private String name;
    @JsonSerialize(using = StringToBoolSerializer.class)
    private String alwaysShow;
    private String redirect;
    @JsonSerialize(using = StringToBoolSerializer.class)
    private String hidden;
    private String title;
    private String icon;
}
